import java.util.Scanner;

public class Example15 {
    public class Example14{
        public static void main(String[]args){
            int password = 123456;
            int input;
            do{
                System.out.println("请输入密码");
                Scanner scanner = new Scanner(System.in);
                input = scanner.nextInt();
                if (input != password)
                {
                    System.out.println("密码输入错误");
                }
            }while (input!=password);
            System.out.println("密码输入正确");

        }
    }

